<?php

declare(strict_types=1);

namespace App\Model;

use Hyperf\Database\Model\SoftDeletes;
use Hyperf\DbConnection\Model\Model;

class PlayletEpisodes extends Model
{
    use SoftDeletes;

    protected ?string $table = 'playlet_episodes';

    const STATUS_SHOW = 1;
    const STATUS_HIDE = 0;

    public static $uploadStatus = [
        1 => '未提交审核',
        2 => '已提交审核',
        3 => '提交成功',
        4 => '审核失败'
    ];

    public function playlet()
    {
        return $this->hasOne(Playlet::class, 'id', 'playlet_id')->select('id','name','is_finish','pay_type');
    }
}
